
#ifndef _LT2911R_LVDS_TO_MIPI_H
#define _LT2911R_LVDS_TO_MIPI_H

#include "lt2911.h"

/////////////////////////////////////////////////////////
//#ifdef _lvds_to_mipi_
//chip select
#define chip LT2911R_D //LT2911R_D or LT2911R

//lvds input
#define LVDS_INPUT_PIN_MAP INPUT_PIN_MAP_0 // map_0: D0/D1/D2/Clk/D3; map_1: D3/D2/Clk/D1/D0;
#define LVDS_PORT_CNT LVDS_IN_1PORT	   // 2port lvds
#define LVDS_VID_FORMAT JEIDA		   // VESA or JEIDA
#define LVDS_SYNC_MODE SYNC_MODE	   // DE_ONLY_MODE
#define LVDS_CLK_PHASE PHASE_0_0
#define LVDS_DESSC DISABLE    //ENABLE  or DISABLE
#define LVDS_O_E_SWAP DISABLE //ENABLE  or DISABLE

#define LVDS_SYNC_POL 0x00 //0x30, 0x10,0x20,0x00

//mipi output
#define MIPI_OUTPUT_PIN_MAP OUTPUT_PIN_MAP_0 //map_0: D3/D2/Clk/D1/D0; map_1: D0/D1/D2/Clk/D3;
#define MIPI_LANE_CNT MIPI_OUT_4LANE
#define MIPI_CLK_MODE MIPI_CLK_CONTINUOUS //MIPI_CLK_CONTINUOUS or MIPI_CLK_UNCONTINUOUS
#define MIPI_HBLANK_MODE MIPI_HBLANK_LP	  //MIPI_HBLANK_HS or MIPI_HBLANK_LP
#define MIPI_BYTE_CLK 68000		  //khz
#define MIPI_PN_SWAP DISABLE		  //ENABLE  or DISABLE
#define MIPI_TX_PORT_A ENABLE		  //ENABLE  or DISABLE
#define MIPI_TX_PORT_B ENABLE		  //ENABLE  or DISABLE

//rotation
//#define ROTATION ENABLE                   //ENABLE  or DISABLE
#define ROTATION 1			 //ENABLE  or DISABLE
#define ROTATION_DIRECTION ROTATION_LEFT //ROTATION_LEFT or ROTATION_RIGHT

//retimer mode
#define RETIMER RETIMER_MODE_0 // RETIMER_MODE_0 or RETIMER_MODE_1

//Video_pattern
#define VIDEO_PATTERN 0 //ENABLE  or DISABLE

//Debug information

/////////////////////////////////////////
extern void LT2911R_Config_lvds_to_mipi(void);
#endif
//#endif